package cn.edu.scau.cmi.xuandingcong.composite.safe;


import java.util.List;
import java.util.Set;



public class Person extends Component{

	String name;

	@Override
	public void print(int i) {
		for(int j=0;j<i;j++) {
			System.out.print("--");
		}
		System.out.println(this.name);
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Person() {
		
	}

	public Person(String name) {
		this.name = name;
	}

}